<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div>
            <div class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </div>
            <div class="mc-m">
                <div class="navToggle"></div>
            </div>
            <div class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="提现记录">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <div class="s_toolTop"></div>
                                <div class="s_toolTop"></div>
                                <div class="s_toolTop"></div>
                                <div class="s_toolTop"></div>
                                <div class="s_toolTop">
                                    <div class="toolbor-module search">
                                        <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                    </div>
                                </div>




                
                            	<div class="toolbor-module search">
				                    <div class="formTit">状态：</div>
				                   <div class="select-box" id="status">
				                        <div class="tag-select">全部</div>
				                        <ul class="tag-options">
				                           <li data-value="">全  部</li>
				                           <li data-value="1">成功</li>
				                           <li data-value="0">失败</li>
				                        </ul>
				                    </div>
				                </div>
				                
				                <div class="toolbor-module search">
				                    <div class="formTit">提现类型：</div>
				                   <div class="select-box" id="cashType">
				                        <div class="tag-select">全部</div>
				                        <ul class="tag-options">
				                           <li data-value="">全  部</li>
				                           <li data-value="1">APP</li>
				                           <li data-value="0">PC</li>
				                        </ul>
				                    </div>
				                </div>

                                <div class="toolbor-module search">
                                 	<div class="formTit">用户名：</div>
                                    <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                     <div class="formTit">真实姓名：</div>
                                    <input type="text" name="realname" id="realname" value="请输入真实姓名" class="search-value">
                                </div>
                                
                                <div class="toolbor-module search">
                                    <div class="formTit">提现时间：</div>
                                    <input class="_search-value" name="startDate" id="startDate" value="" onclick="change_picktime()"/>
                                    <div class="formTit"> 到 </div>
                                    <input class="_search-value" name="endDate" id="endDate" value=""  onclick="change_picktime()"/>
                                </div>

                              
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>用户名</td>
                                            <td>真实姓名</td>
                                            <td>提现账号</td>
                                            <td>银行卡类型</td>
                                            <td>提现银行</td>
                                            <td>提现总额</td>
                                            <td>到账金额</td>
                                            <td>手续费</td>
                                            <td>提现时间</td>
                                            <td>提现类型</td>
                                            <td>状态</td>
                                        </tr>
                                        <#include "../../common/function.html">
                                            <#list list as item>
                                                <tr class="s">
                                                    <td>${(item.id!0)?c}</td>
                                                    <td><#if item.user??&&item.user.userName??><a onclick='alertPop("用户详细信息查看","url:post?${request.getContextPath()}/admin/attestation/viewUserInfo.html?userId=${item.user.userId?c}",500,230,"true","","true","text");' href="javascript:void(0)">${item.user.userName!}</a><#else>-</#if></td>
                                                    <td><#if item.user??&&item.user.realName??>${item.user.realName!}<#else>-</#if></td>
                                                    <td><#if item??&&item.accountBank.account??>${item.accountBank.account!}<#else>-</#if></td>
                                                    <td><#if item??&&item.accountBank.bank.memo??>${item.accountBank.bank.memo}<#else>-</#if></td>
                                                    <td><#if item??&&item.accountBank.bank.bankName??>${item.accountBank.bank.bankName!}<#else>-</#if></td>
                                                    <td><#if item??&&item.total??>${format2((item.total!"0"))}<#else>-</#if></td>
                                                    <td><#if item??&&item.credited??>${format2((item.credited!"0"))}<#else>-</#if></td>
                                                    <td><#if item??&&item.fee??>${format2((item.fee!"0"))}<#else>-</#if></td>
                                                    <td><#if item??&&item.addtime??>${item.addtime}<#else>-</#if></td>
                                                    <td><#if item.cashType==1>APP<#else>PC</#if></td>
                                                    <td><#if item.status==1><font style="color: green;">成功</font><#else><font style="color: red;">失败</font></#if></td>
                                                </tr>
                                            </#list>

                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container s_formPage">
                                        <#import "../../common/page.html" as pager>
                                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script>
                                    var url = 'cashRecord.html?search=true';
                                    function sousuo(){
                                    	 var sou = "";
                                         var username = $("#username").val();
                                         if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                                             sou += "&username="+username;
                                         }
                                     	 var realname = $("#realname").val();
                     					 if(realname!=""&&realname!="请输入真实姓名"){
                     						sou += "&realname="+realname;
                     					 }
                    					 var startDate = $("#startDate").val();
                                         var endDate = $("#endDate").val();
                                         if (startDate!=null){
                                            sou += "&startDate="+startDate;
                                         }
                                         if (endDate!=null){
                                            sou += "&endDate="+endDate;
                                         }
                                         var status = $("#status").find(".open-selected").attr("data-value");
                                         if(status!=null&&status!=""&&status!="undefine"){
                                         	sou += "&status="+status;
                                         }
                                         var cashType = $("#cashType").find(".open-selected").attr("data-value");
                                         if(cashType!=null&&cashType!=""&&cashType!="undefine"){
                                         	sou += "&cashType="+cashType;
                                         }
                                         if (sou!=""){
                                             location.href=url+sou;
                                         }
                                    }
                                
                                </script>
                            </div>

            </div>
        </div>
        <div class="mc-b">
            <#include "../foot.html">
        </div>
    </div>
    <#include "../jsPage.html">
    </body>
</html>

